package com.xbh.management.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xbh.common.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-30 14:21
 */
@Data
public class ManDepartment extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Column(name = "department_id")
    private Long departmentId;

    @Column(name = "parent_id")
    private Long parentId;

    @Column(name = "order_num")
    private Long orderNum;

    @Column(name = "department_name")
    private String departmentName;

    @Column(name = "department_leader")
    private String departmentLeader;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "contract_email")
    private String contractEmail;

    @Column(name = "contract_telephone")
    private String contractTelephone;

    @Column(name = "department_number")
    private String departmentNumber;

    @Column(name = "department_address")
    private String departmentAddress;

    /*
    子级菜单
 */
    @TableField(exist = false)
    private List<ManDepartment> children;
}
